<?php
require_once 'db.php';
class keyword extends db{
    public $name ;
    public function select(){      
       $data = array();
       $query = "SELECT * FROM $this->name";
       $results = mysql_query($query);
       while ($row = mysql_fetch_assoc($results)){
           $data[] = $row;
       }
        return $data;
    }
}
